package com.outstanding.his.symptom.service.impl;

import com.outstanding.his.symptom.dao.ISymptomDao;
import com.outstanding.his.symptom.domain.Symptom;
import com.outstanding.his.symptom.service.ISymptomService;

public class SymptomService implements ISymptomService {

	private ISymptomDao symptomDao;

	public void setSymptomDao(ISymptomDao symptomDao) {
		this.symptomDao = symptomDao;
	}

	@Override
	public Symptom submitSymptom(Symptom symptom) {
		symptom = this.symptomDao.submitSymptom(symptom);
		return symptom;
	}

	@Override
	public Symptom getSymptom(Integer symptomId) {
		return this.symptomDao.getSymptom(symptomId);
	}

	@Override
	public Symptom getSymptomByPatientId(Integer patientId) {
		return this.symptomDao.getSymptomByPatientId(patientId);
	}

}
